package com.ternnetwork.batch.processor;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.stereotype.Component;

import com.ternnetwork.batch.model.TestUser;

import lombok.extern.slf4j.Slf4j;


/**
 * 
 * @author xuwenfeng
 *
 */
@Slf4j
@Component("testUserProcessor")
public class TestUserProcessor implements ItemProcessor<TestUser, TestUser> {

	@Override
	public TestUser process(TestUser item) throws Exception {
		
		item.setName(item.getName()+"00");
		log.info("正在处理"+item);
		
		return item;
	}

}
